{% extends "base.html" %}

{% block title %}
    {% if article %}
        <title>{{ article.title }}</title>
    {% endif %}
{% endblock %}

{% block style %}
    <link rel="stylesheet" type="text/css" href="/static/GitHub2.css">

    <!--<link rel = "stylesheet" type = "text/css" href = "/static/style/style_base.css">-->
{% endblock %}

{% block context %}
    {% if articles %}
        {% for article in articles %}
            <body class="body-post">
            <div class="post-wrapper">
            <h1 class="post-title"><a href="autohome/{{ article.url }}"
                    title="{{ article.title }}">{{ article.title }}</a></h1>
            <p class="post-date">{{ article.create_time|date:"Y-m-d" }}</p>
            </div>
            </body>
        {% endfor %}
    {% endif %}
{% endblock %}